package com.aihna.mall.domain.vo;

import com.aihna.mall.domain.StoreUserIntegralRecord;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.aihna.common.excel.annotation.ExcelDictFormat;
import com.aihna.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 用户积分记录视图对象 vvl_store_user_integral_record
 *
 * @author Joseph.Chen
 * @date 2024-04-16
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = StoreUserIntegralRecord.class)
public class StoreUserIntegralRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    @ExcelProperty(value = "记录id")
    private Long id;

    /**
     * 用户uid
     */
    @ExcelProperty(value = "用户uid")
    private Long uid;

    /**
     * 关联id-orderNo,(sign,system默认为0）
     */
    @ExcelProperty(value = "关联id-orderNo,(sign,system默认为0）")
    private String linkId;

    /**
     * 关联类型（order,sign,system）
     */
    @ExcelProperty(value = "关联类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "o=rder,sign,system")
    private String linkType;

    /**
     * 类型：1-增加，2-扣减
     */
    @ExcelProperty(value = "类型：1-增加，2-扣减")
    private Integer type;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 积分
     */
    @ExcelProperty(value = "积分")
    private Integer integral;

    /**
     * 剩余
     */
    @ExcelProperty(value = "剩余")
    private Integer balance;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String mark;

    /**
     * 状态：1-订单创建，2-冻结期，3-完成，4-失效（订单退款）
     */
    @ExcelProperty(value = "状态：1-订单创建，2-冻结期，3-完成，4-失效", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "订=单退款")
    private Integer status;

    /**
     * 冻结期时间（天）
     */
    @ExcelProperty(value = "冻结期时间", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "天=")
    private Integer frozenTime;

    /**
     * 解冻时间
     */
    @ExcelProperty(value = "解冻时间")
    private Long thawTime;


}
